<div class="escopos view">
	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php echo __('Escopo'); ?></h1>
			</div>
		</div>
	</div>

	<div class="row">

		<div class="col-md-3">
			<div class="actions">
				<div class="panel panel-default">
					<div class="panel-heading">Actions</div>
						<div class="panel-body">
							<ul class="nav nav-pills nav-stacked">
									<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>&nbsp&nbsp;Edit Escopo'), array('action' => 'edit', $escopo['Escopo']['id']), array('escape' => false)); ?> </li>
		<li><?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>&nbsp;&nbsp;Delete Escopo'), array('action' => 'delete', $escopo['Escopo']['id']), array('escape' => false), __('Are you sure you want to delete # %s?', $escopo['Escopo']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp&nbsp;List Escopos'), array('action' => 'index'), array('escape' => false)); ?> </li>
		<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp&nbsp;New Escopo'), array('action' => 'add'), array('escape' => false)); ?> </li>
		<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp&nbsp;List Contratantes'), array('controller' => 'contratantes', 'action' => 'index'), array('escape' => false)); ?> </li>
		<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp&nbsp;New Contratante'), array('controller' => 'contratantes', 'action' => 'add'), array('escape' => false)); ?> </li>
		<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp&nbsp;List Releases'), array('controller' => 'releases', 'action' => 'index'), array('escape' => false)); ?> </li>
		<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp&nbsp;New Release'), array('controller' => 'releases', 'action' => 'add'), array('escape' => false)); ?> </li>
		<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp&nbsp;List Requisitos'), array('controller' => 'requisitos', 'action' => 'index'), array('escape' => false)); ?> </li>
		<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp&nbsp;New Requisito'), array('controller' => 'requisitos', 'action' => 'add'), array('escape' => false)); ?> </li>
							</ul>
						</div><!-- end body -->
				</div><!-- end panel -->
			</div><!-- end actions -->
		</div><!-- end col md 3 -->

		<div class="col-md-9">			
			<table cellpadding="0" cellspacing="0" class="table table-striped">
				<tbody>
				<tr>
		<th><?php echo __('Id'); ?></th>
		<td>
			<?php echo h($escopo['Escopo']['id']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Descricao'); ?></th>
		<td>
			<?php echo h($escopo['Escopo']['descricao']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Objetivo'); ?></th>
		<td>
			<?php echo h($escopo['Escopo']['objetivo']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Beneficios'); ?></th>
		<td>
			<?php echo h($escopo['Escopo']['beneficios']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Publicoalvo'); ?></th>
		<td>
			<?php echo h($escopo['Escopo']['publicoalvo']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Datedefi'); ?></th>
		<td>
			<?php echo h($escopo['Escopo']['datedefi']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Datamoficcacao'); ?></th>
		<td>
			<?php echo h($escopo['Escopo']['datamoficcacao']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Contratante'); ?></th>
		<td>
			<?php echo $this->Html->link($escopo['Contratante']['nome'], array('controller' => 'contratantes', 'action' => 'view', $escopo['Contratante']['id'])); ?>
			&nbsp;
		</td>
</tr>
				</tbody>
			</table>

		</div><!-- end col md 9 -->

	</div>
</div>

<div class="related row">
	<div class="col-md-12">
	<h3><?php echo __('Related Releases'); ?></h3>
	<?php if (!empty($escopo['Release'])): ?>
	<table cellpadding = "0" cellspacing = "0" class="table table-striped">
	<thead>
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Datainicio'); ?></th>
		<th><?php echo __('Datafinal'); ?></th>
		<th><?php echo __('Escopo Id'); ?></th>
		<th class="actions"></th>
	</tr>
	<thead>
	<tbody>
	<?php foreach ($escopo['Release'] as $release): ?>
		<tr>
			<td><?php echo $release['id']; ?></td>
			<td><?php echo $release['datainicio']; ?></td>
			<td><?php echo $release['datafinal']; ?></td>
			<td><?php echo $release['escopo_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-search"></span>'), array('controller' => 'releases', 'action' => 'view', $release['id']), array('escape' => false)); ?>
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>'), array('controller' => 'releases', 'action' => 'edit', $release['id']), array('escape' => false)); ?>
				<?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>'), array('controller' => 'releases', 'action' => 'delete', $release['id']), array('escape' => false), __('Are you sure you want to delete # %s?', $release['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody>
	</table>
<?php endif; ?>

	<div class="actions">
		<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;New Release'), array('controller' => 'releases', 'action' => 'add'), array('escape' => false, 'class' => 'btn btn-default')); ?> 
	</div>
	</div><!-- end col md 12 -->
</div>
<div class="related row">
	<div class="col-md-12">
	<h3><?php echo __('Related Requisitos'); ?></h3>
	<?php if (!empty($escopo['Requisito'])): ?>
	<table cellpadding = "0" cellspacing = "0" class="table table-striped">
	<thead>
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('DataIn'); ?></th>
		<th><?php echo __('DataF'); ?></th>
		<th><?php echo __('Descricao'); ?></th>
		<th><?php echo __('Voz'); ?></th>
		<th><?php echo __('DtElicitacao'); ?></th>
		<th><?php echo __('Escopo Id'); ?></th>
		<th><?php echo __('Departamento Id'); ?></th>
		<th><?php echo __('Release Id'); ?></th>
		<th><?php echo __('Release Escopo Id'); ?></th>
		<th><?php echo __('StakeholderId'); ?></th>
		<th class="actions"></th>
	</tr>
	<thead>
	<tbody>
	<?php foreach ($escopo['Requisito'] as $requisito): ?>
		<tr>
			<td><?php echo $requisito['id']; ?></td>
			<td><?php echo $requisito['dataIn']; ?></td>
			<td><?php echo $requisito['dataF']; ?></td>
			<td><?php echo $requisito['descricao']; ?></td>
			<td><?php echo $requisito['voz']; ?></td>
			<td><?php echo $requisito['dtElicitacao']; ?></td>
			<td><?php echo $requisito['escopo_id']; ?></td>
			<td><?php echo $requisito['departamento_id']; ?></td>
			<td><?php echo $requisito['release_id']; ?></td>
			<td><?php echo $requisito['release_escopo_id']; ?></td>
			<td><?php echo $requisito['stakeholderId']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-search"></span>'), array('controller' => 'requisitos', 'action' => 'view', $requisito['id']), array('escape' => false)); ?>
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>'), array('controller' => 'requisitos', 'action' => 'edit', $requisito['id']), array('escape' => false)); ?>
				<?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>'), array('controller' => 'requisitos', 'action' => 'delete', $requisito['id']), array('escape' => false), __('Are you sure you want to delete # %s?', $requisito['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody>
	</table>
<?php endif; ?>

	<div class="actions">
		<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;New Requisito'), array('controller' => 'requisitos', 'action' => 'add'), array('escape' => false, 'class' => 'btn btn-default')); ?> 
	</div>
	</div><!-- end col md 12 -->
</div>
